package com.hckjsec.law.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.law.mapper.LawWechatUserMapper;
import com.hckjsec.law.domain.LawWechatUser;
import com.hckjsec.law.service.ILawWechatUserService;

/**
 * 公法基础信息Service业务层处理
 * 
 * @author cyt
 * @date 2021-11-08
 */
@Service
public class LawWechatUserServiceImpl implements ILawWechatUserService 
{
    @Autowired
    private LawWechatUserMapper lawWechatUserMapper;

    /**
     * 查询公法基础信息
     * 
     * @param openid 公法基础信息ID
     * @return 公法基础信息
     */
    @Override
    public LawWechatUser selectLawWechatUserById(String openid)
    {
        return lawWechatUserMapper.selectLawWechatUserById(openid);
    }

    /**
     * 查询公法基础信息列表
     * 
     * @param lawWechatUser 公法基础信息
     * @return 公法基础信息
     */
    @Override
    public List<LawWechatUser> selectLawWechatUserList(LawWechatUser lawWechatUser)
    {
        return lawWechatUserMapper.selectLawWechatUserList(lawWechatUser);
    }

    /**
     * 新增公法基础信息
     * 
     * @param lawWechatUser 公法基础信息
     * @return 结果
     */
    @Override
    public int insertLawWechatUser(LawWechatUser lawWechatUser)
    {
        return lawWechatUserMapper.insertLawWechatUser(lawWechatUser);
    }

    /**
     * 修改公法基础信息
     * 
     * @param lawWechatUser 公法基础信息
     * @return 结果
     */
    @Override
    public int updateLawWechatUser(LawWechatUser lawWechatUser)
    {
        return lawWechatUserMapper.updateLawWechatUser(lawWechatUser);
    }

    /**
     * 批量删除公法基础信息
     * 
     * @param openids 需要删除的公法基础信息ID
     * @return 结果
     */
    @Override
    public int deleteLawWechatUserByIds(String[] openids)
    {
        return lawWechatUserMapper.deleteLawWechatUserByIds(openids);
    }

    /**
     * 删除公法基础信息信息
     * 
     * @param openid 公法基础信息ID
     * @return 结果
     */
    @Override
    public int deleteLawWechatUserById(String openid)
    {
        return lawWechatUserMapper.deleteLawWechatUserById(openid);
    }
}
